import createRequest from '../utils/request';

export function loginRequest(data){
  return createRequest({
    url:'/login',
    method:'POST',
    data,
    needLogin:false
  })
};
export function getScoreListRequest(data){
  return createRequest({
    url:'/scores',
    //默认为get
    method:'GET',
    data,
    //未定义undefined也不等于false
    needLogin:true
  })
}


export function getRawScoreListRequest(data){
  return createRequest({
    url:'/raw-scores',
    //默认为get
    method:'GET',
    data,
    //未定义undefined也不等于false
    needLogin:true
  })
}

export function getCourseListRequest(data){
return createRequest({
   url: '/courses',
   data,
   needLogin:true
})
}